<?php

	/*
	 * @param $this->args [array] array($key => $value);
	 */
	class Devmod_method_castField_value_dropdown extends Devmod_castField_abstraction {
		
		public function type_add()
		{
			$this->view->assign('field_name', $this->cfg['field_name']);
			$this->view->assign('array', $this->args);
			return $this->view->fetch('common/cast_value_dropdown.tpl');
		}
		
		public function type_frontend_add()
		{
			return $this->type_add();
		}
		
		public function type_edit()
		{
			$this->view->assign(array(
				'value' => $this->value,
				'field_name' => $this->cfg['field_name'],
				'array' => $this->args
			));
			
			return $this->view->fetch('common/cast_value_dropdown.tpl');
		}
		
	}